package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请购单对象 requisitions
 * 
 * @author ruoyi
 * @date 2021-04-30
 */
public class Requisitions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订购单单号 */
    private Long rid;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String proName;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String proNumber;

    /** 交期要求 */
    @Excel(name = "交期要求")
    private String deliveryReq;

    /** 请购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requisitionDate;

    /** 制单 */
    @Excel(name = "制单")
    private String maker;

    /** 制单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "制单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date makerTime;

    /** 仓库主管 */
    @Excel(name = "仓库主管")
    private String warehouserManager;

    /** 主管签名时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "主管签名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date wareManagerTime;

    /** 保障经理 */
    @Excel(name = "保障经理")
    private String assuranceManager;

    /** 保障经理签名时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保障经理签名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date accManagerTime;

    /** 0/1是否已生成采购单 */
    @Excel(name = "0/1是否已生成采购单")
    private Integer state;

    private Integer pState;

    public Integer getpState() {
        return pState;
    }

    public void setpState(Integer pState) {
        this.pState = pState;
    }

    /** 0/1材料请购/器具请购 */
    @Excel(name = "0/1材料请购/器具请购")
    private Long type;

    private List<Appliance> appliances;

    //请购单材料
    private List<ReqReocrd> reqReocrds;
    /** 采购单单号 */
    @Excel(name = "采购单单号")
    private Long purId;

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProNumber() {
        return proNumber;
    }

    public void setProNumber(String proNumber) {
        this.proNumber = proNumber;
    }

    public String getDeliveryReq() {
        return deliveryReq;
    }

    public void setDeliveryReq(String deliveryReq) {
        this.deliveryReq = deliveryReq;
    }

    public Date getRequisitionDate() {
        return requisitionDate;
    }

    public void setRequisitionDate(Date requisitionDate) {
        this.requisitionDate = requisitionDate;
    }

    public String getMaker() {
        return maker;
    }

    public void setMaker(String maker) {
        this.maker = maker;
    }

    public Date getMakerTime() {
        return makerTime;
    }

    public void setMakerTime(Date makerTime) {
        this.makerTime = makerTime;
    }

    public String getWarehouserManager() {
        return warehouserManager;
    }

    public void setWarehouserManager(String warehouserManager) {
        this.warehouserManager = warehouserManager;
    }

    public Date getWareManagerTime() {
        return wareManagerTime;
    }

    public void setWareManagerTime(Date wareManagerTime) {
        this.wareManagerTime = wareManagerTime;
    }

    public String getAssuranceManager() {
        return assuranceManager;
    }

    public void setAssuranceManager(String assuranceManager) {
        this.assuranceManager = assuranceManager;
    }

    public Date getAccManagerTime() {
        return accManagerTime;
    }

    public void setAccManagerTime(Date accManagerTime) {
        this.accManagerTime = accManagerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public List<Appliance> getAppliances() {
        return appliances;
    }

    public void setAppliances(List<Appliance> appliances) {
        this.appliances = appliances;
    }

    public List<ReqReocrd> getReqReocrds() {
        return reqReocrds;
    }

    public void setReqReocrds(List<ReqReocrd> reqReocrds) {
        this.reqReocrds = reqReocrds;
    }

    public Long getPurId() {
        return purId;
    }

    public void setPurId(Long purId) {
        this.purId = purId;
    }

    @Override
    public String toString() {
        return "Requisitions{" +
                "rid=" + rid +
                ", proName='" + proName + '\'' +
                ", proNumber='" + proNumber + '\'' +
                ", deliveryReq='" + deliveryReq + '\'' +
                ", requisitionDate=" + requisitionDate +
                ", maker='" + maker + '\'' +
                ", makerTime=" + makerTime +
                ", warehouserManager='" + warehouserManager + '\'' +
                ", wareManagerTime=" + wareManagerTime +
                ", assuranceManager='" + assuranceManager + '\'' +
                ", accManagerTime=" + accManagerTime +
                ", state=" + state +
                ", pState=" + pState +
                ", type=" + type +
                ", appliances=" + appliances +
                ", reqReocrds=" + reqReocrds +
                ", purId=" + purId +
                '}';
    }
}
